<template>
  <div style="display: inline-block">
    <el-tag v-if="value==='0'" type="success">
      <dict-table-column v-model="value" :dict-key="dictKey" />
    </el-tag>
    <el-tag v-else-if="value==='1'" type="danger">
      <dict-table-column v-model="value" :dict-key="dictKey" />
    </el-tag>
  </div>
</template>

<script>

export default {
  name: 'StockOperationTypeTag',
  props: {
    value: {
      type: String,
      default() {
        return ''
      }
    }
  },
  data() {
    return {
      dictKey: 'stock_operation_type'
    }
  }
}
</script>

<style scoped>

</style>
